package day9;

public class TakeSquareRootOfNegativeNumberException extends Exception{
	private int num;
	public TakeSquareRootOfNegativeNumberException() {
		super("输入错误，不能对负数求平方根");
	}
    public TakeSquareRootOfNegativeNumberException(int num) {
		super("输入错误，不能对负数求平方根");
		this.num = num;
		}
}
